//
//  Forum_MoreCell.m
//  Pacific_Computer
//
//  Created by 范琦 on 14-12-25.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Forum_MoreCell.h"
#import "UIColor+AddColor.h"

@implementation Forum_MoreCell
- (void)dealloc
{
    [_title release];
    [_message release];
    [_type release];
    [_floor release];
    [_view1 release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[UILabel alloc]init];
        [self.contentView addSubview:self.title];
        [_title release];
        
        self.message = [[UILabel alloc]init];
        [self.contentView addSubview:self.message];
        [_message release];
        
        self.type = [[UILabel alloc]init];
        [self.contentView addSubview:self.type];
        [_type release];
        
        self.floor = [[UILabel alloc]init];
        [self.contentView addSubview:self.floor];
        [_floor release];
        
        self.view1 = [[UIView alloc]init];
        [self.contentView addSubview:self.view1];
        self.view1.backgroundColor = [UIColor huiseColor];
        [_view1 release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    self.title.frame = CGRectMake(5, 5, self.contentView.bounds.size.width - 10, self.contentView.bounds.size.height / 3);
    self.title.numberOfLines = 0;
    self.message.frame = CGRectMake(5, 5 + self.title.bounds.size.height, self.title.bounds.size.width, self.title.bounds.size.height);
    self.message.numberOfLines = 0;
    self.message.font = [UIFont systemFontOfSize:13];
    self.type.frame = CGRectMake(5, self.message.bounds.size.height + self.message.frame.origin.y, self.contentView.bounds.size.width / 2, self.message.bounds.size.height / 2);
    self.type.font = [UIFont systemFontOfSize:11];
    self.type.textColor = [UIColor blueColor];
    self.floor.frame = CGRectMake(5 + self.type.bounds.size.width, self.type.frame.origin.y, self.contentView.bounds.size.width / 2 - 10, self.message.bounds.size.height / 2);
    self.floor.font = [UIFont systemFontOfSize:11];
    
    self.view1.frame = CGRectMake(0, self.floor.frame.origin.y + self.floor.bounds.size.height, self.contentView.bounds.size.width, self.type.bounds.size.height);


}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
